package com.cpp.pojo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

//id INT primary key auto_increment COMMENT '知识点id',
//course_id INT  COMMENT '课程ID',
//name varchar(255) COMMENT '知识点名称',
//content text COMMENT '知识点讲解',
//create_time timestamp default now(),
//update_time timestamp default now() on update now()
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Knowledge {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long courseId;
    private Long subjectId;
    private Long chapterId;
    private String name;
    private String content;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

}
